﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NbMeterServices
{
    public class EventsConfig
    {
        /// <summary>
        /// 是否启用报警
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 报警事件类型(字典)
        /// </summary>
        public int EventType { get; set; }
        /// <summary>
        /// 报警阈值
        /// </summary>
        public string LimitValue { get; set; }
        /// <summary>
        /// 报警级别
        /// </summary>
        public string EventLevel { get; set; }
        /// <summary>
        /// 是否启用短信通知
        /// </summary>
        public bool UserSms { get; set; }
        /// <summary>
        /// 事件内容
        /// </summary>
        public string EventMsg { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string? Memo { get; set; }
        /// <summary>
        /// 最大通知次数
        /// </summary>
        public int MaxNoticeNum { get; set; } = 1;
        /// <summary>
        /// 重置周期
        /// </summary>
        public int ResetCycle { get; set; } = 1;
        /// <summary>
        /// 通知范围
        /// </summary>
        public string NoticeScope { get; set; }
    }
}
